<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDao/QxRepository/QxRepository.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_repository_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">QxRepository.h File Reference<div class="ingroups"><a class="el" href="group___qx_dao.html">QxDao : QxOrm library database communication used by persistence engine (ORM - Object Relational Mapping)</a></div></div>  </div>
</div>
<div class="contents">

<p>Repository to provide a common interface to communicate with database.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;boost/type_traits/is_base_of.hpp&gt;</code><br/>
<code>#include &lt;<a class="el" href="_ix_repository_8h_source.html">QxDao/QxRepository/IxRepository.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_qx_repository_x_8h_source.html">QxDao/QxRepository/QxRepositoryX.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_qx_dao_8h_source.html">QxDao/QxDao.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_qx_session_8h_source.html">QxDao/QxSession.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_qx_sql_error_8h_source.html">QxDao/QxSqlError.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_qx_class_8h_source.html">QxRegister/QxClass.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="_qx_collection_8h_source.html">QxCollection/QxCollection.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="get__primary__key_8h_source.html">QxTraits/get_primary_key.h</a>&gt;</code><br/>
</div>
<p><a href="_qx_repository_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">qx::QxRepository&lt;T&gt; : repository to provide a common interface to communicate with database  <a href="classqx_1_1_qx_repository.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structqx_1_1_qx_repository_1_1qx_verify_pointer.html">qx::QxRepository&lt; T &gt;::qxVerifyPointer&lt; bIsQObject, dummy &gt;</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structqx_1_1_qx_repository_1_1qx_verify_pointer_3_01true_00_01dummy_01_4.html">qx::QxRepository&lt; T &gt;::qxVerifyPointer&lt; true, dummy &gt;</a></td></tr>
<tr><td colspan="2"><h2><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceqx.html">qx</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>Root namespace for all QxOrm library features. </p>
<br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_qx_repository_8h.html#a66f071e9ac3d10bc7da62d6b391c86df">QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR</a>&#160;&#160;&#160;QSqlError(&quot;[QxOrm] <a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository</a>&lt;T&gt; : 'invalid collection pointer, dynamic_cast failed'&quot;, &quot;&quot;, QSqlError::UnknownError)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_qx_repository_8h.html#af52e6f9587a7121705a3be3e5425bb27">QX_REPOSITORY_POINTER_DYNAMIC_CAST_ERROR</a>&#160;&#160;&#160;QSqlError(&quot;[QxOrm] <a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository</a>&lt;T&gt; : 'invalid pointer, dynamic_cast failed'&quot;, &quot;&quot;, QSqlError::UnknownError)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_qx_repository_8h.html#abfc04341b91ebd0997235f9f5c5b754c">QX_REPOSITORY_QOBJECT_BASE_CLASS_ERROR</a>&#160;&#160;&#160;QSqlError(&quot;[QxOrm] <a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository</a>&lt;T&gt; : 'invalid pointer, need to inherit from QObject class to use <a class="el" href="classqx_1_1_ix_repository.html">qx::IxRepository</a> interface'&quot;, &quot;&quot;, QSqlError::UnknownError)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_qx_repository_8h.html#a09101357f58266c835562c64dc380ddd">QX_REPOSITORY_CAST_COLLECTION</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceqx.html#a10d662c78d56271d8fdaeff896548e46">qx::register_repository</a> (const QString &amp;sKey)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Repository to provide a common interface to communicate with database. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Lionel Marty </dd></dl>

<p>Definition in file <a class="el" href="_qx_repository_8h_source.html">QxRepository.h</a>.</p>
</div><hr/><h2>Define Documentation</h2>
<a class="anchor" id="a09101357f58266c835562c64dc380ddd"></a><!-- doxytag: member="QxRepository.h::QX_REPOSITORY_CAST_COLLECTION" ref="a09101357f58266c835562c64dc380ddd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define QX_REPOSITORY_CAST_COLLECTION</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">type_collection_qt * x = <span class="keyword">dynamic_cast&lt;</span>type_collection_qt *<span class="keyword">&gt;</span>(p); \
type_collection_boost * y = (x ? NULL : <span class="keyword">dynamic_cast&lt;</span>type_collection_boost *<span class="keyword">&gt;</span>(p)); \
if (! x &amp;&amp; ! y) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(<a class="code" href="_qx_repository_8h.html#a66f071e9ac3d10bc7da62d6b391c86df">QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR</a>); }
</pre></div>
<p>Definition at line <a class="el" href="_qx_repository_8h_source.html#l00066">66</a> of file <a class="el" href="_qx_repository_8h_source.html">QxRepository.h</a>.</p>

</div>
</div>
<a class="anchor" id="a66f071e9ac3d10bc7da62d6b391c86df"></a><!-- doxytag: member="QxRepository.h::QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR" ref="a66f071e9ac3d10bc7da62d6b391c86df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define QX_REPOSITORY_COLLECTION_DYNAMIC_CAST_ERROR&#160;&#160;&#160;QSqlError(&quot;[QxOrm] <a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository</a>&lt;T&gt; : 'invalid collection pointer, dynamic_cast failed'&quot;, &quot;&quot;, QSqlError::UnknownError)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_repository_8h_source.html#l00061">61</a> of file <a class="el" href="_qx_repository_8h_source.html">QxRepository.h</a>.</p>

</div>
</div>
<a class="anchor" id="af52e6f9587a7121705a3be3e5425bb27"></a><!-- doxytag: member="QxRepository.h::QX_REPOSITORY_POINTER_DYNAMIC_CAST_ERROR" ref="af52e6f9587a7121705a3be3e5425bb27" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define QX_REPOSITORY_POINTER_DYNAMIC_CAST_ERROR&#160;&#160;&#160;QSqlError(&quot;[QxOrm] <a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository</a>&lt;T&gt; : 'invalid pointer, dynamic_cast failed'&quot;, &quot;&quot;, QSqlError::UnknownError)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_repository_8h_source.html#l00062">62</a> of file <a class="el" href="_qx_repository_8h_source.html">QxRepository.h</a>.</p>

</div>
</div>
<a class="anchor" id="abfc04341b91ebd0997235f9f5c5b754c"></a><!-- doxytag: member="QxRepository.h::QX_REPOSITORY_QOBJECT_BASE_CLASS_ERROR" ref="abfc04341b91ebd0997235f9f5c5b754c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define QX_REPOSITORY_QOBJECT_BASE_CLASS_ERROR&#160;&#160;&#160;QSqlError(&quot;[QxOrm] <a class="el" href="classqx_1_1_qx_repository.html">qx::QxRepository</a>&lt;T&gt; : 'invalid pointer, need to inherit from QObject class to use <a class="el" href="classqx_1_1_ix_repository.html">qx::IxRepository</a> interface'&quot;, &quot;&quot;, QSqlError::UnknownError)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_qx_repository_8h_source.html#l00063">63</a> of file <a class="el" href="_qx_repository_8h_source.html">QxRepository.h</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_repository_8h.html">QxRepository.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:07 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
